﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="CuotasDePago.aspx.cs" Inherits="Box.Cliente.Logistica.Pago_Compras.CuotasDePago" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
     <asp:UpdatePanel ID="UpdatePanel2"  runat="server" Visible="true">

         <ContentTemplate>
              <div class="col-lg-12">
             <div class="panel panel-primary">
            <div class="panel-heading">
                <div class="panel-title">
                    <h3>Gestionar Cuotas de pago</h3>
                </div>
            </div>
            <div class="panel-body">
                
                <div class="row">
                       <asp:ListView ID="ListView1"
        ItemType="Box.Entities.PagoCompra"
        runat="server"
        SelectMethod="FindSFPagoCompraById">
     
        <LayoutTemplate>
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th>Fecha de Pago</th>
                        <th>Monto</th>
                        <th>Estado</th>
                        <th>Acciones</th>
                    </tr>
                </thead>
                <tbody>
                    <tr id="itemPlaceholder" runat="server"></tr>
                </tbody>
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <tr>
                <td><%#Item.FechaPagoCuota %></td>
                <td><%#Item.MontoPagar %></td>
                <td><%#Item.Estado %></td>
                <td>
                    <a id="linq" class="glyphicon glyphicon-edit label label-warning" href="CuotasDePago.aspx?idCuota=<%#Item.Id %>&opc=PagarCuota"> Pagar</a>
                    <a id="A1" class="glyphicon glyphicon-remove label label-danger" 
                        onclick='return confirm("¿Desea anular este pago?");'  href="CuotasDePago.aspx?opc=delete&idCuota=<%#Item.Id %>"> Anular</a>
                </td>
            </tr>
        </ItemTemplate>

    </asp:ListView>
    
                </div>
           </div>
            </div>
                  </div>
         </ContentTemplate>
     </asp:UpdatePanel>  
    <div class="col-lg-12">
        
   
      </div>
    
 
      <asp:UpdatePanel ID="upd1"  runat="server" Visible="false">

         <ContentTemplate>
              <div class="col-lg-12">
         <div class="panel panel-primary">
            
    	<div class="panel-heading"><h3>pagar cuota</h3> 
    	</div>

    	<div class="panel-body">
        <div class="col-lg-12">

        </div>
        <div class="col-lg-4">
            <asp:TextBox ID="tbxCantidad" CssClass="form-control input-sm" runat="server" />
            <asp:TextBox ID="tbxId" runat="server" />
            <h4>Adjuntar Archivo</h4>
            <asp:FileUpload ID="fuArchivo" CssClass="form-control input-sm" runat="server" />
        </div>
        <div class="col-lg-4">
            <h4>Tipo de Documento</h4>
            <asp:DropDownList
                CssClass="form-control input-sm"
                ID="ddlDocumento"
                ItemType="Box.Entities.TipoDocumento"
                DataTextField="NombreTipoDocumento"
                DataValueField="Id"
                runat="server"
                SelectMethod="GetTipoDocumentos" />
        </div>
        <div class="col-lg-4">
            <h4>Estado</h4>
            <asp:DropDownList
                CssClass="form-control input-sm"
                ID="ddlEstado"
                runat="server" OnSelectedIndexChanged="ddlEstado_SelectedIndexChanged"  AutoPostBack="True">
                <asp:ListItem Text="Seleccione" />
                <asp:ListItem Text="Pagado" />
                <asp:ListItem Text="No Pagado" />
            </asp:DropDownList>
            <asp:TextBox CssClass="form-control input-sm" ID="tbxEstado" runat="server" />
        </div>
       </div>
                     <br />
                    <asp:Button ID="btnGuardar"  class="btn-sm btn-default" Text="Guardar" runat="server" OnClick="btnGuardar_Click" />

        </div>
                  </div>
          </ContentTemplate>
   
      </asp:UpdatePanel>

 
    
</asp:Content>
